Helping Kids with Coding For Dummies by Camille McCue Ph.D & Sarah Guthals PhD
Author:Camille McCue, Ph.D & Sarah Guthals PhD [McCue, Camille & Guthals, Sarah]
Language: eng
Format: epub
ISBN: 9781119380665
Publisher: Wiley
Published: 2018-05-15T00:00:00+00:00
Figure 9-4 shows a switch statement written in Java along with the result of the program execution.
FIGURE 9-4: Java code, written in BlueJ, demonstrating use of a switch statement for selecting pizza serving quantities (top), and its output (bottom).
Advanced Logic, Unplugged
Young coders typically code simple conditionals before moving on to more complex logic. Your coder will want to level up his logic skills by putting together more than one condition. Doing so allows him to create compound conditionals, facilitating the selection of many different routes through a program.
Prior to diving into the actual programming details of compound conditionals (many conditionals put together), help your coders cement the logic of working with multiple if-then statements in more familiar settings. Many beloved childhood board games and puzzles are predicated on logical operations, including Guess Who, Clue, and Mastermind. Playing and winning the game requires players to construct and use conditionals, specifically compound conditionals. Here is what each game addresses:
Guess Who (Figure 9-5) is a sort of whodoneit? two-player game that's perfect for the early elementary crowd. In Guess Who, each of two players possess a set of characters with different hair color, eye color, and clothing accessories. Each player selects a âmarkâ and her opponent attempts to guess the identity of the mark by asking true/false questions to eliminate characters. Following the elimination of all characters who donât match, the character who remains is the mark. Ultimately, finding the mark is a process of executing a compound conditional statement. For example, âif the person (is a redhead and wears glasses and not male) then the person is the mark.â
Clue (Figure 9-6) is another classic whodoneit? game, with multiple players working to solve a murder mystery. Players of all ages, from elementary schoolers through octogenarians enjoy Clue. Game action involves each player rolling dice to move game pieces around the board and make conjectures about who committed the crime, the type of murder weapon, and the room in which the crime occurred. Following each conjecture, other players report a part of the conjecture as true or false. Learning what is true and false provides clues that advance the player ever closer to solving the mystery. Best of all, your young coder will learn that, determining whether âColonel Mustard did it and he did it in the Ballroom and he used the Candlestick,â is great practice for writing complex conditionals!
Mastermind (Figure 9-7) is a code-making and code-breaking two-player game in which one player makes a code and her opponent works to break the code. Kids of middle school age and older find this game incredibly fun and addictive. Each code consists of four pegs, which can be arranged in any sequence using pegs of six different colors. The code breaker takes a shot in the dark on the first guess, for example guessing purple-purple-yellow-yellow. The code maker then indicates, how many pegs are not correct; how many are the correct color and not correct position; and how many are the correct color and correct position.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
What's Done in Darkness by Kayla Perrin(26600)
The Fifty Shades Trilogy & Grey by E L James(19084)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19067)
Shot Through the Heart by Mercy Celeste(18940)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17123)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(17001)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16883)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16831)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16455)
The Subtle Art of Not Giving a F*ck by Mark Manson(14357)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14145)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13653)
Scorched Earth by Nick Kyme(12775)
Drei Generationen auf dem Jakobsweg by Stein Pia(10968)
Suna by Ziefle Pia(10892)
Scythe by Neal Shusterman(10342)
The Ultimate Python Exercise Book: 700 Practical Exercises for Beginners with Quiz Questions by Copy(9683)
D:\Jan\FTP\HOL\Work\Alien Breed - Tower Assault CD32 Alien Breed II - The Horror Continues Manual 1.jpg by PDFCreator(9674)
De Souza H. Master the Age of Artificial Intelligences. The Basic Guide...2024 by Unknown(9616)
